package com.hzy.fivepalace.admin.dao;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@ApiModel(value = "修改商品实体对象")
public class AdminUpdGoods {

    @ApiModelProperty(value="商品id,必填",required = true)
    private Integer id;

    @ApiModelProperty(value="商品编码")
    private String goodsSn;

    @ApiModelProperty(value="商品名称")
    private String name;

    @ApiModelProperty(value="原价")
    private BigDecimal counterPrice;

    @ApiModelProperty(value="商品所属新类目ID")
    private Integer categoryIdNew;

    @ApiModelProperty(value="商品宣传图片列表，采用JSON数组格式")
    private String[] gallery;

    @ApiModelProperty(value="商品关键字，采用逗号间隔")
    private String keywords;

    @ApiModelProperty(value="商品简介")
    private String brief;

    @ApiModelProperty(value="是否上架")
    private Boolean isOnSale;

    @ApiModelProperty(value="商品详细介绍，是富文本格式")
    private String detail;

    @ApiModelProperty(value="排序")
    private Short sortOrder;

    @ApiModelProperty(value="是否新品首发")
    private Boolean isNew;

    @ApiModelProperty(value="是否热门推荐，如果设置则可以在显示在首页热门推荐,非必填,默认为false")
    private Boolean isHot;

    @ApiModelProperty(value="商品单位，例如件、盒")
    private String unit;

    @ApiModelProperty(value="是否支持自提")
    private Boolean isSince;

    @ApiModelProperty(value="分享时显示价格")
    private Boolean isOpenPrice;

    @ApiModelProperty(value="视频url")
    private String videoUrl;

    @ApiModelProperty(value="单层商品规格列表")
    private List<AdminUpdGoodsSpecification>  specificationList;

    @ApiModelProperty(value = "双层商品主规格")
    private AdminUpdGoodsBothSpecificationMain bothSpecification;

}
